package demo.service;

import com.jfinal.aop.Before;
import com.jfinal.aop.Clear;
import demo.interceptor.ClassInterceptor;
import demo.interceptor.MethodInterceptor;

/**
 *
 * Created by ldt on 2017/6/23.
 */
@Before(ClassInterceptor.class)
public class DemoService {
    @Clear(MethodInterceptor.class)
    @Before(MethodInterceptor.class)
    public void change(int a, int b){
        System.out.println("a : " + a + ",b : " + b);
        int temp = a;
        a = b;
        b= temp;
        System.out.println("a : " + a + ",b : " + b);
        System.out.println("a and b change finish");
    }

}
